package com.xomily.devops.agent.domain;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonFormat;


/**
 * @version V1.0
 * @ClassName:BaseEntity.java
 * @author: xomily (2327742507@qq.com)
 * @date: 2021年12月02日
 * @Description: BaseEntity.java
 * @Copyright: 2021-2022 www.xomily.com. All rights reserved.
 */
public class BaseEntity implements Serializable
{
    private static final long serialVersionUID = 1L;


    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 备注 */
    private String remark;

    /** 请求参数 */
    private Map<String, Object> params;

    public Date getCreateTime()
    {
        return createTime;
    }

    public void setCreateTime(Date createTime)
    {
        this.createTime = createTime;
    }

    public String getRemark()
    {
        return remark;
    }

    public void setRemark(String remark)
    {
        this.remark = remark;
    }

    public Map<String, Object> getParams()
    {
        if (params == null)
        {
            params = new HashMap<>();
        }
        return params;
    }

    public void setParams(Map<String, Object> params)
    {
        this.params = params;
    }
}
